@import '../lib/mixins';

.common-head {
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  height: rpx(114);
  @include flex;
  box-sizing: border-box;
  padding-left: rpx(30);
  box-shadow: 0px 0.10rem 0.08rem 0px rgba(#000,.08);
  .logo {
    flex: 1;
    overflow: hidden;
    @include flex(row, center,flex-start);
    .logo-box {
      @include flex;
    }
    img {
      width: rpx(191);
      &.logo-2 {
        width: auto;
        height: rpx(52);
      }
    }
    .btn {
      padding: 0 rpx(18);
      height: rpx(48);
      @include flex;
      border: 1px solid #FF2E30;
      border-radius: rpx(24);
      box-sizing: border-box;
      font-size: rpx(20);
      color: #FF2E30;
      margin-left: rpx(20);
    }
  }
  .phone-btn {
    @include flex;
    img {
      width: rpx(44);
      margin-right: rpx(10);
    }
    .phone {
      flex: 1;
      overflow: hidden;
      color: #333333;
      font-size: rpx(24);
    }
  }
  .menu-btn {
    width: rpx(80);
    height: 100%;
    margin-right: rpx(30);
    @include flex(row,center,flex-end);
    img {
      width: rpx(39);
    }
  }
}
.common-tabbar {
  background-color: #fff;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: rpx(120);
  z-index: 9;
  box-shadow: 0px -0.09rem 0.08rem 0px rgba(188,185,185,0.28);
  @include flex;
  box-sizing: border-box;
  .item {
    flex: 1;
    height: 100%;
    position: relative;
    @include flex(column);
    &:after {
      content: '';
      width: 1px;
      height: rpx(34);
      background: #999999;
      opacity: 0.15;
      position: absolute;
      left: 0;
      top: rpx(40);
    }
    &:first-child {
      &:after {
        content: none;
      }
    }
    .icon {
      width: rpx(36);
      height: rpx(36);
      margin-bottom: rpx(10);
    }
    .name {
      line-height: 1.1;
      font-size: rpx(28);
      color: #333333;
    }
  }
  .btn {
    width: rpx(216);
    height: rpx(72);
    line-height: rpx(72);
    text-align: center;
    background: #FF2E30;
    border-radius: rpx(36);
    color: #fff;
    font-size: rpx(28);
    margin-right: rpx(42);
  }
}
.common-content {
  min-height: 100vh;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  overflow: hidden;
  &.common-content--head {
    padding-top: rpx(114);;
  }
  &.common-content--foot {
    padding-bottom: rpx(120);
  }
}


.my-swipe {
  width: 100%;
  height: rpx(483);
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.index-card {
  background-color: #fff;
  padding: 0 rpx(30);
  box-sizing: border-box;
  overflow: hidden
}
.common-title {
  @include flex;
  .line {
    width: rpx(6);
    height: rpx(30);
    background: #FF2E30;
    margin-right: rpx(20);
  }
  .title {
    line-height: 1.1;
    flex: 1;
    overflow: hidden;
    font-size: rpx(32);
    color: #000000;
  }
  .intro-1 {
    color: #999999;
    font-size: rpx(20);
  }
  .intro-2 {
    padding: 0 rpx(16);
    height: rpx(42);
    border: 1px solid #999999;
    color: #999999;
    font-size: rpx(20);
    border-radius: rpx(21);
    @include flex;
    box-sizing: border-box;
  }
}

.index-module-1 {
  .list {
    margin-right: rpx(-30);
    overflow: auto;
    .wrapper {
      display: inline-flex;
      white-space: nowrap;
      .sub {
        width: rpx(303);
        height: rpx(80);
        background: #F7F7F7;
        margin-right: rpx(14);
        margin-bottom: rpx(14);
        @include flex(row);
        .icon {
          margin-left: rpx(16);
          width: rpx(60);
          height: rpx(60);
          margin-right: rpx(14);
          img {
            display: block;
            width: 100%;
            height: 100%;
          }
        }
        .name {
          flex: 1;
          font-size: rpx(20);
          color: #000000;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
        }
      }
    }
  }
  padding-bottom: rpx(11);
  border-bottom: rpx(3) solid #F8F8FA;
}

.index-module-2 {
  .wrapper {
    width: rpx(692);
    background: #FFFFFF;
    box-shadow: 0px 0px 0.06rem 0px rgba(172,172,172,0.51);
    border-radius: rpx(10);
    margin: rpx(30) auto rpx(46);
    overflow: hidden;
    .navs {
      height: rpx(80);
      background: #FFF5F5;
      @include flex;
      .item {
        flex: 1;
        overflow: hidden;
        height: 100%;
        position: relative;
        @include flex;
        &:after {
          content: '';
          width: 1px;
          height: rpx(22);
          background: #DBDBDB;
          position: absolute;
          top: 50%;
          left: 0;
          transform: translateY(-50%);
        }
        &:first-child {
          &::after {
            content: none;
          }
        }
        .name {
          font-size: rpx(22);
          color: #010101;
          height: rpx(44);
          line-height: rpx(44);
          padding: 0 rpx(20);
        }
        &.active {
          .name {
            background-color: #FF2E30;
            color: #fff;
            border-radius: rpx(22);
          }
        }
      }
    }
    .list {
      .item {
        @include flex(row,flex-start,center);
        margin: rpx(32) rpx(34);
        .image {
          width: rpx(200);
          height: rpx(122);
          overflow: hidden;
          border-radius: rpx(12);
          margin-right: rpx(28);
          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
        }
        .infos {
          flex: 1;
          overflow: hidden;
          .title {
            line-height: 1.2;
            font-size: rpx(22);
            color: #010101;
            margin-bottom: rpx(10);
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
          }
          .box {
            line-height: 1.8;
            .sub {
              font-size: rpx(20);
              color: #666666;
              text-decoration: underline;
              white-space: nowrap;
              text-overflow: ellipsis;
              overflow: hidden;
            }
          }
        }
      }
    }
  }
}
.margin {
  width: 100%;
  height: rpx(20);
}
.index-module-3 {
  padding-bottom: rpx(20);
  border-bottom: rpx(3) solid #F8F8FA;
  .types {
    overflow: hidden;
    .item {
      height: rpx(168);
      border-radius: rpx(10);
      margin-bottom: rpx(16);
      @include flex(row,flex-start,center);
      &.item-1 {
        .label::before, .label::after {
          border-top-color: #3D443180;
        }
      }
      &.item-2 {
        .label::before, .label::after {
          border-top-color: #476A8E80;
        }
      }
      &.item-3 {
        .label::before, .label::after {
          border-top-color: #D09E3A80;
        }
      }
      &.item-4 {
        .label::before, .label::after {
          border-top-color: #497E7080;
        }
      }
      .label {
        width: rpx(52);
        height: rpx(117);
        line-height: 1.1;
        font-size: rpx(28);
        color: #FFFFFF;
        margin-left: rpx(28);
        margin-right: rpx(32);
        text-align: center;
        font-weight: bold;
        @include flex;
        position: relative;
        &:before {
          content: '';
          width: 0;
          height: 0;
          border-right: rpx(26) solid transparent;
          border-top: rpx(8) solid transparent;
          position: absolute;
          top: 100%;
          left: 0;
        }
        &:after {
          content: '';
          width: 0;
          height: 0;
          border-left: rpx(26) solid transparent;
          border-top: rpx(8) solid transparent;
          position: absolute;
          top: 100%;
          right: 0;
        }
      }
      .infos {
        flex: 1;
        overflow: hidden;
        height: 100%;
        @include flex(column,flex-start,center);
        line-height: 1.6;
        .title {
          font-size: rpx(24);
          font-weight: bold;
          margin-bottom: rpx(8);
        }
        .times {
          color: #000000;
          font-size: rpx(20);
        }
      }
      .btn {
        width: rpx(120);
        height: rpx(50);
        line-height: rpx(50);
        text-align: center;
        font-size: rpx(20);
        color: #FFFFFF;
        border-radius: rpx(25);
        margin-top: rpx(59);
        margin-left: rpx(10);
        margin-right: rpx(20);
      }
    }
  }
  .schools {
    @include flex(row,flex-start,space-between,wrap);
    .item {
      width: calc((100% - 0.24rem) / 3);
      height: rpx(72);
      margin-bottom: rpx(12);
      background: #FFFFFF;
      box-shadow: 0px 0px 0.06rem 0px rgba(172,172,172,0.51);
      border-radius: rpx(10);
      box-sizing: border-box;
      padding: 0 rpx(16);
      @include flex;
      .icon {
        width: rpx(38);
        height: rpx(38);
        margin-right: rpx(8);
      }
      .name {
        flex: 1;
        overflow: hidden;
        font-size: rpx(20);
        color: #31404C;
        line-height: 1.2;
      }
    }
  }
}
.index-module-4 {
  .types {
    overflow: hidden;
    .item {
      &.item-3 {
        .label::before, .label::after {
          border-top-color: #5B5B9180;
        }
      }
    }
  }
}

.index-module-5 {
  padding-bottom: rpx(6);
  .titles {
    width: 100%;
    height: rpx(45);
    @include flex(row,center,flex-start);
    background: url('../images/index/bg.png') no-repeat center;
    background-size: 100% 100%;
    margin-bottom: rpx(32);
    .icon {
      width: rpx(25);
      height: rpx(25);
      margin-left: rpx(20);
      margin-right: rpx(7);
    }
    .bt {
      font-size: rpx(22);
      color: #FFFFFF;
      width: rpx(210);
    }
    .content {
      font-size: rpx(20);
      color: #FF2E30;
    }
  }
  .banners {
    margin-bottom: rpx(36);
    .van-swipe__indicators {
      bottom: 0;
      .van-swipe__indicator {
        background-color: #FFECEC; opacity: 1;
      }
    }
    .list {
      width: rpx(690);
      height: rpx(275);
      .item {
        width: calc((100% - 0.16rem) / 3);
        height: rpx(233);
        background: #FFFFFF;
        box-shadow: 0.02rem 0.03rem 0.05rem 0px rgba(176,176,176,0.3);
        border-radius: rpx(10);
        position: relative;
        margin-right: rpx(8);
        &:last-child {
          margin-right: 0;
        }
        .image {
          width: rpx(225);
          height: rpx(125);
          border-radius: rpx(10);
          overflow: hidden;
          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
        }
        .name {
          line-height: 1.2;
          font-size: rpx(22);
          color: #333333;
          margin: rpx(24) rpx(18) rpx(14);
          white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;
        }
        .view {
          margin-left: rpx(18);
          box-sizing: border-box;
          color: #999999;
          font-size: rpx(20);
          height: rpx(24);
          line-height: rpx(24);
          padding-left: rpx(30);
          background: url('../images/index/view-icon.png') no-repeat left center;
          background-size: rpx(24) auto;
        }
        .btn {
          width: rpx(36);
          height: rpx(36);
          background: url('../images/index/arrow.png') no-repeat center;
          background-size: 100% auto;
          position: absolute;
          bottom: rpx(12);
          right: rpx(14);
        }
      }
    }
  }
}

.index-module-6 {
  height: rpx(1174);
  width: 100%;
  background: url('../images/index/bg-2.png') no-repeat center;
  background-size: 100% 100%;
  overflow: hidden;
  .titles {
    margin: rpx(54) rpx(32) rpx(56);
    @include flex(row,flex-start,center);
    .line {
      width: rpx(6);
      height: rpx(30);
      margin-top: rpx(2);
      background: #FFFFFF;
      margin-right: rpx(24);
    }
    .bt {
      color: #FFFFFF;
      font-size: rpx(32);
      line-height: rpx(34);
      flex: 1;
    }
    .tabs {
      @include flex(row,center,flex-end);
      .item {
        min-width: rpx(56);
        text-align: center;
        height: rpx(54);
        line-height: rpx(54);
        background: rgba(#FFFFFF,.42);
        border-radius: rpx(27);
        font-size: rpx(32);
        color: #FFFFFF;
        margin-left: rpx(6);
        &.active {
          padding: 0 rpx(44);
          background-color: #fff;
          color: #E82426;
        }
      }
    }
  }
  .rank-bts {
    @include flex(row,flex-start,space-between);
    .rank-bt {
      width: rpx(486);
      height: rpx(74);
      border-radius: rpx(37);
      font-size: rpx(28);
      @include flex;
      font-weight: bold;
      margin-left: rpx(64);
      .t1 {
        color: #000000;
      }
      .dot {
        width: rpx(12);
        height: rpx(12);
        background: #E82426;
        border-radius: 50%;
        margin: 0 rpx(20);
      }
      .t2 {
        color: #6D6D6C;
      }
    }
    .rank {
      line-height: 1.2;
      font-size: rpx(54);
      font-weight: bold;
      color: #FFFFFF;
      opacity: 0.49;
      margin-right: rpx(28);
      transform: translateY(-0.1rem);
    }
  }
  .rank-top {
    width: rpx(592);
    height: rpx(203);
    margin: rpx(76) auto rpx(21);
    background: url('../images/index/rank.png') center no-repeat;
    background-size: 100% 100%;
    @include flex(row,flex-start,space-around);
    .item {
      @include flex(column,center,flex-start);
      width: rpx(120);
      margin-top: rpx(-6);
      &:nth-child(2) {
        margin-top: rpx(-26);
      }
      .icon {
        width: rpx(70);
        height: rpx(70);
        margin-bottom: rpx(8);
      }
      .name {
        font-size: rpx(20);
        color: #010101;
        text-align: center;
        line-height: 1.2;
      }
    }
  }
  .rank-bottom {
    background-color: #ff2e30;
    border-radius: rpx(10);
    width: rpx(580);
    margin: auto;
    overflow: hidden;
    .head {
      height: rpx(64);
      @include flex;
      font-size: rpx(26);
      color: #FFFFFF;
      .t1 {
        margin-left: rpx(42);
        margin-right: rpx(56);
      }
      .t2 {
        flex: 1;
        overflow: hidden;
      }
      .dots {
        @include flex;
        margin-right: rpx(27);
        span {
          width: rpx(11);
          height: rpx(11);
          background: #FF9899;
          border-radius: 50%;
          margin-left: rpx(10);
        }
      }
    }
    .list {
      border-radius: rpx(10);
      .item {
        height: rpx(66);
        @include flex;
        .idx {
          width: rpx(24);
          height: rpx(24);
          line-height: rpx(24);
          text-align: center;
          background: #EEEEEE;
          border-radius: 50%;
          color: #656565;
          font-size: rpx(22);
          margin-left: rpx(36);
          margin-right: rpx(26);
        }
        .name {
          flex: 1;
          color: #333333;
          font-size: rpx(22);
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
        &:nth-child(even) {
          background-color: #FFF7F7;
        }
        &:nth-child(odd) {
          background-color: #fff;
        }
      }
    }
  }
}

.quick-application-channel {
  background-color: #fff;
  box-sizing: border-box;
  padding: rpx(40) rpx(30) rpx(30);
  .form {
    box-sizing: border-box;
    border: 1px solid #D9D9D9;
    border-radius: rpx(10);
    padding: rpx(44) rpx(24) rpx(26);
    .title {
      font-size: rpx(32);
      color: #000000;
      line-height: 1.2;
      margin-bottom: rpx(38);
      text-align: center;
      font-weight: bold;
    }
    .form-item {
      width: 100%;
      box-sizing: border-box;
      height: rpx(76);
      background: #F1F5F7;
      border-radius: rpx(10);
      @include flex;
      overflow: hidden;
      padding: 0 rpx(24);
      position: relative;
      .ipt {
        flex: 1;
        height: 100%;
        background-color: transparent;
        box-sizing: border-box;
        input {
          display: block;
          font-size: rpx(24);
          width: 100%;
          height: 100%;
          background-color: transparent;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }
      .arrow {
        width: rpx(32);
        height: rpx(32);
        margin-left: rpx(10);
      }
    }
    .label {
      margin-bottom: rpx(34);
    }
    .btn {
      width: 100%;
      height: rpx(76);
      line-height: rpx(76);
      background: #E82426;
      border-radius: rpx(10);
      color: #FEFEFE;
      font-size: rpx(28);
    }
  }
}

.bottom-infos {
  height: rpx(128);
  @include flex;
  .infos {
    @include flex(column,flex-start,center);
    font-size: rpx(22);
    color: #999;
    line-height: 1.2;
    span {
      color: #000000;
    }
    .info {
      padding: rpx(6) 0;
    }
  }
}

.common-slider {
  width: 100vw;
  height: 100vh;
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  .bg {
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: .5;
  }
  .slider-wrapper {
    width: rpx(480);
    height: 100%;
    background: url('../images/index/top-bg.png') no-repeat center top #fff;
    background-size: 100% auto;
    position: absolute;
    top: 0;
    left: 0;
    overflow: auto;
    .back {
      padding: rpx(20) 0;
      @include flex;
      margin-top: rpx(80);
      margin-left: rpx(40);
      position: relative;
      margin-bottom: rpx(-20);
      .arrow {
        position: relative;
        @include arrow(24,#fff,2,225);
      }
      .name {
        flex: 1;
        font-size: rpx(28);
        color: #fff;
      }
    }
    .photo{
      display: block;
      width: rpx(416);
      height: auto;
      margin-left: rpx(40);
    }
    .navs {
      padding-left: rpx(58);
      margin-bottom: rpx(170);
      position: relative;
      margin-top: rpx(20);
      .item {
        overflow: hidden;
        .main {
          @include flex;
          height: rpx(90);
          img {
            width: rpx(40);
            height: rpx(40);
            margin-right: rpx(20);
          }
          span {
            flex: 1;
            overflow: hidden;
            font-size: rpx(28);
            color: #111111;
          }
        }
        .sub {
          padding-left: rpx(60);
          margin: rpx(-8) 0;
          a {
            display: block;
            height: rpx(68);
            line-height: rpx(68);
            font-size: rpx(26);
            color: #515151;
          }
        }
      }
    }
    .bottom {
      @include flex(column);
      margin-bottom: rpx(30);
      .icon {
        width: rpx(260);
        height: auto;
        margin-top: rpx(48);
      }
      .tel {
        font-size: rpx(28);
        line-height: 1.2;
        color: #999999;
      }
    }
  }
}

.modal-container {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 99;
  .bg {
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: .5;
  }
  .box {
    position: absolute;
    width: rpx(430);
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    .img {
      width: 100%;
      display: block;
    }
    .close {
      width: rpx(46);
      height: rpx(46);
      position: absolute;
      top: rpx(-54);
      right: rpx(-36);
    }
  }
}